/**
 * Created by zlc on 2018/1/20.
 */
import Router from 'vue-router'
import ViewHome from './assets/views/home.vue'
import ViewTopic from './assets/views/topic.vue'
import ViewClass from './assets/views/class.vue'
import ViewShop from './assets/views/shop.vue'
import ViewMy from './assets/views/my.vue'


import login from './assets/views/login/login.vue'//登录页
import register from './assets/views/login/register.vue'//注册页
import ceshi from './assets/components/ceshi.vue'//测试页
import ceshi1 from './assets/components/ceshi1.vue'//测试页
import ceshi2 from './assets/components/ceshi2.vue'//测试页
import index from './assets/views/login/index.vue'//首页
import search_pass from './assets/views/login/search_pass.vue'//找回密码页
import shortcut_login from './assets/views/login/shortcut_login.vue'//快捷登录页
import user_agreement from './assets/views/login/user_agreement.vue'//用户协议页
import home from './assets/views/home.vue'//主页
import gathering from './assets/views/gathering/index.vue'//收款
import mine from './assets/views/mine/index.vue'//我的
import news from './assets/views/news/index.vue'//消息
import chat from './assets/views/news/chat.vue'//消息
import shop from './assets/views/shop/index.vue'//商铺
import create_shop from './assets/views/shop/create_shop.vue'//创建店铺
import shop_map from './assets/views/shop/shop_map.vue'//店铺地图
import setShopInfo from './assets/views/shop/setShopInfo.vue'//设置店铺信息
import shop_name from './assets/views/shop/shop_name.vue'//设置店铺名
import shop_adress from './assets/views/shop/shop_adress.vue'//设置店铺地址
import shop_category from './assets/views/shop/shop_category.vue'//设置店铺类别
import shop_introduce from './assets/views/shop/shop_introduce.vue'//设置店铺简介
import shop_time from './assets/views/shop/shop_time.vue'//设置店铺营业时间
import shop_phone from './assets/views/shop/shop_phone.vue'//设置店铺营业电话
import shop_goods from './assets/views/shop/shop_goods.vue'//商品页
import shop_add_goods from './assets/views/shop/shop_add_goods.vue'//添加商品页
import shop_full_goods from './assets/views/shop/shop_full_goods.vue'//有商品的商品页
import catery_shop from './assets/views/shop/catery_shop.vue'//有商品的商品页
import shop_commodity from './assets/views/shop/shop_commodity.vue'//商品详情页
import shop_commodity_particulars from './assets/views/shop/shop_commodity_particulars.vue'//商品详情页默认进入界面
import shop_commodity_child from './assets/views/shop/shop_commodity_child.vue'//商品详情页
import shop_other from './assets/views/shop/shop_other.vue'//商品详情页
import mine_authentication from './assets/views/mine/mine_authentication.vue'//个人认证页
import shop_host from './assets/views/mine/shop_host.vue'//店主个人信息认证页
import mine_result from './assets/views/mine/mine_result.vue'//认证结果页
import mine_setting from './assets/views/mine/mine_setting.vue'//设置页
import mine_help from './assets/views/mine/mine_help.vue'//帮助文档
import mine_info from './assets/views/mine/mine_info.vue'//个人信息认证页面
import mine_change_phoneNumber from './assets/views/mine/mine_change_phoneNumber.vue'//更改手机号页面
import mine_change_password from './assets/views/mine/mine_change_password.vue'//更改密码页面
import mine_change from './assets/views/mine/mine_change.vue'//更改手机号页面
import new_phoneNumber from './assets/views/mine/new_phoneNumber.vue'//更改手机号页面
import change_success from './assets/views/mine/change_success.vue'//更改手机号页面

/*
*
* ------------------------用户界面路由分界线----------------------------------------
* */






Vue.use(Router)


export default new Router({   
    routes: [
        { path: '/', redirect: '/index' },//首页
        { path: '/index', component: index },//首页
        { path: '/login', component: login },//登录页
        { path: '/register', component: register },//注册页
        { path: '/ceshi', component: ceshi,
            children:[
                {
                    path: '/',
                    component: ceshi1,
                },
                {
                    path: '/ceshi1',
                    component: ceshi1,
                },
                {
                    path: '/ceshi2',
                    component: ceshi2,
                }
            ]
         },//测试页
        { path: '/search_pass', component: search_pass },//找回密码页
        { path: '/shortcut_login', component: shortcut_login },//快捷登录页
        { path: '/user_agreement', component: user_agreement },//用户协议页
        { path: '/home', component: home },//主页 ~~~店铺首页
        { path: '/gathering', component: gathering },//收款
        { path: '/mine', component: mine },//我的
        { path: '/news', component: news },//消息
        { path: '/shop', component: shop },//商铺
        { path: '/create_shop', component: create_shop },//创建店铺
        { path: '/shop_map', component: shop_map },//店铺地图
        { path: '/setShopInfo', component: setShopInfo },//店铺信息
        { path: '/shop_name', component: shop_name },//店铺名
        { path: '/shop_adress', component: shop_adress },//店铺地址
        { path: '/shop_category', component: shop_category },//店铺类别
        { path: '/shop_introduce', component: shop_introduce },//店铺简介
        { path: '/shop_time', component: shop_time },//店铺营业时间
        { path: '/shop_phone', component: shop_phone },//店铺营业电话
        { path: '/shop_goods', component: shop_goods },//商品页
        { path: '/shop_full_goods', component: shop_full_goods },//商品页
        { path: '/shop_add_goods', component: shop_add_goods },//添加商品页
        { path: '/catery_shop', 
            component: catery_shop,
            children: [
                // {
                //     path: '/', component:  
                // },
                // {
                //     path: '/', component:  
                // },
                // {
                //     path: '/', component:  
                // },
                // {
                //     path: '/', component:  
                // },
            ],
        },//有商品的商品页
        { path: '/shop_commodity', component: shop_commodity,
            children: [
                {
                    path: '/',
                    component: shop_commodity_particulars, //商品详情
                },
                {
                    path: '/shop_commodity_particulars',
                    component: shop_commodity_particulars, //商品详情
                },
                {
                    path: '/shop_commodity_child',
                    component: shop_commodity_child, //商品详情
                },
                {
                    path: '/shop_other',
                    component: shop_other, //商品页其他
                },
            ]
         },//添加商品页
         { path: '/mine_authentication', component: mine_authentication },//个人认证页
         { path: '/shop_host', component: shop_host },//店主个人信息认证页
         { path: '/mine_result', component: mine_result },//认证结果页
         { path: '/mine_setting', component: mine_setting },//设置页
         { path: '/mine_help', component: mine_help },//帮助文档页面
         { path: '/mine_info', component: mine_info },//个人信息认证
         { path: '/mine_change_phoneNumber', component: mine_change_phoneNumber },//修改手机号
         { path: '/mine_change_password', component: mine_change_password },//修改密码
         { path: '/mine_change', component: mine_change },//修改密码
         { path: '/new_phoneNumber', component: new_phoneNumber },//输入新手机号
         { path: '/change_success', component: change_success },//输入新手机号
         { path: '/chat', component: chat },//输入新手机号

        /*
        * ------------------------用户界面路由分界线----------------------------------------
        * */

    ]
})